import { formatTime  } from '@/utils'
export const normalColumns =  [
  { title18: 'basicData.lvNo', dataIndex: 'code', key: 'code', align: 'center', width: 130, sorter: true },
  { title18: 'basicData.lvName', dataIndex: 'grade', key: 'grade', align: 'center', width: 130, sorter: true },
  { title18: 'basicData.lvCodes', dataIndex: 'number', key: 'number', align: 'center', width: 130, sorter: true },
  { title18: 'basicData.priority', dataIndex: 'priority', key: 'priority', align: 'center', width: 130, sorter: true },
  { title18: 'common.startState', dataIndex: 'status', key: 'status', align: 'center', width: 130, sorter: true },
  { title18: 'basicData.staffNumber', dataIndex: 'staffNum', key: 'staffNum', align: 'center', width: 130, sorter: true },
  { title18: 'common.remark', dataIndex: 'remark', key: 'remark', align: 'center', width: 130, sorter: true },
  {
    title18: 'common.createTime', dataIndex: 'createTime', key: 'createTime', align: 'center', width: 170, sorter: true, timeType: 'time',
    customRender: ({ text }) => {
      return formatTime(text, 'YYYY-MM-DD HH:mm:ss')
    }
  }, 
  { title18: 'common.operate', dataIndex: 'operate', key: 'operate', align: 'center', width: 130, fixed: 'right' }
]

export const localColumns =  [
  { title18: 'basicData.lvNo', dataIndex: 'code', key: 'code', align: 'center', width: 130, sorter: true },
  { title18: 'basicData.lvName', dataIndex: 'grade', key: 'grade', align: 'center', width: 130, sorter: true },
  { title18: 'basicData.lvCodes', dataIndex: 'number', key: 'number', align: 'center', width: 130, sorter: true },
  { title18: 'basicData.priority', dataIndex: 'priority', key: 'priority', align: 'center', width: 130, sorter: true },
  { title18: 'common.startState', dataIndex: 'status', key: 'status', align: 'center', width: 130, sorter: true },
  { title18: 'basicData.staffNumber', dataIndex: 'staffNum', key: 'staffNum', align: 'center', width: 130, sorter: true },
  { title18: 'common.remark', dataIndex: 'remark', key: 'remark', align: 'center', width: 130, sorter: true },
  {
    title18: 'common.createTime', dataIndex: 'createTime', key: 'createTime', align: 'center', width: 170, sorter: true, timeType: 'time',
    customRender: ({ text }) => {
      return formatTime(text, 'YYYY-MM-DD HH:mm:ss')
    }
  }
]